<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="common/include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
                            <button shiro:hasPermission="/dept/add" type="button" class="btn btn-primary" onclick="add()">
                                <i class="fa fa-plus"></i>添加
                            </button>
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>

		<!--表格行内按钮权限设置-->
		<div>
			<script type="text/javascript">
				var editFlag = 'hidden';
				var delFlag = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="/dept/edit">
			<script type="text/javascript">
				editFlag = '';
			</script>
		</div>
		<div shiro:hasPermission="/dept/del">
			<script type="text/javascript">
				delFlag = '';
			</script>
		</div>
		<!--表格行内按钮权限设置-->
	</div>
    <div th:include="common/include :: footer"></div>
    <script type="text/javascript" th:src="@{/project/dept/dept.js}"></script>
</body>
</html>